<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="/public :: #public_head"></head>
<body>
<header th:replace="/public :: #public_header"></header>
<section th:replace="/public :: #public_time"></section>
<!---->
<section class="publicMian ">
    <div class="left" th:replace="/public :: #public_left"></div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>订单新增</span>
        </div>
        <div class="providerAdd">
            <form action="#" th:method="post" id="addForm" th:action="@{/bill}">
                <div>
                    <label>订单编码：</label>
                    <input type="text" name="billCode" id="billCode" required>
                    <span>*请输入订单编码</span>
                </div>
                <div>
                    <label>商品名称：</label>
                    <input type="text" name="billName" id="billName" required>
                    <span >*请输入商品名称</span>
                </div>
                <div>
                    <label for="billCom">商品单位：</label>
                    <input type="text" name="billCom" id="billCom" required/>
                    <span>*请输入商品单位</span>

                </div>
                <div>
                    <label for="billNum">商品数量：</label>
                    <input type="text" name="billNum" id="billNum" required/>
                    <span>*请输入大于0的正自然数，小数点后保留2位</span>
                </div>
                <div>
                    <label for="money">总金额：</label>
                    <input type="text" name="money" id="money" required/>
                    <span>*请输入大于0的正自然数，小数点后保留2位</span>
                </div>
                <div>
                    <label>选择供应商：</label>
                    <select name="pid">
                        <option value="">--请选择供应商--</option>
                        <option th:each="p : ${providers}" th:value="${p.pid}" th:text="${p.providerName}"></option>
                    </select>
                    <span>*请选择供应商</span>
                </div>
                <div>
                    <label >是否付款：</label>
                    <input type="radio" value="0" name="pay" checked />未付款
                    <input type="radio" value="1" name="pay"/>已付款
                </div>
                <div class="providerAddBtn">
                    <input type="submit" id="save" value="保存" />
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>
    </div>
</section>
<footer th:replace="/public::#public_footer"></footer>
</body>
</html>